<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:sec="http://www.springframework.org/security/facelets/tags">


<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title><ui:insert name="titulo">WebSec</ui:insert></title>
	<h:outputStylesheet library="css" name="topo.css" />
	<h:outputStylesheet library="css" name="estilo.css" />
	<h:outputStylesheet library="css" name="fornecedor.css" />
	<h:outputStylesheet library="css" name="cliente.css" />

	<script type="text/javascript">
function UR_Start() 
{

    setInterval(function(){

        UR_Nu = new Date;
        UR_Indhold = showFilled(UR_Nu.getHours()) + ":" + showFilled(UR_Nu.getMinutes()) + ":" + showFilled(UR_Nu.getSeconds());
    	$("#ur").text(UR_Indhold);
    	
        },1000);
}
function showFilled(Value) 
{
    return (Value > 9) ? "" + Value : "0" + Value;
}

</script>





</h:head>
<h:body onload="UR_Start() ">
	<div id="container">


		<div id="topo">
			<ui:insert name="topo">
				<ui:include src="/restrito/topo.xhtml" />
			</ui:insert>
		</div>


		<div id="identificacao">
			<div style="width: 200px; float: left; margin-left: 10px;">
				<font id="ur" size="5" face="sans-serif" />
			</div>

			<div style="width: 300px; float: right; margin: 10px">
				<h:panelGroup>
					<h:outputLabel value="Usuario logado : " style="font-weight:bold" /> #{request.remoteUser}
				</h:panelGroup>
			</div>

			<div style="width: 300px; float: right; margin: 10px;">
				<h:form>
					<h:panelGroup>
						<h:panelGrid columns="2">
							<a href="#{facesContext.externalContext.requestContextPath}/j_spring_security_logout"></a>
						</h:panelGrid>
					</h:panelGroup>
				</h:form>
			</div>
		</div>




		<div id="menu">
			<ui:insert name="menu">
				<ui:include src="/fornecedor/menu.xhtml" />
			</ui:insert>
		</div>


		<div id="conteudo">
			<ui:insert name="conteudo">
			</ui:insert>
		</div>


	</div>
</h:body>

</html>